package org.mj.im.common.enums;

public enum IMSendCode {
    SUCCESS(0,"发送成功"),
    NOT_ONLINE(1,"对方不在线"),
    NOT_FIND_CHANNEL(2,"未找到对方的channel"),
    UNKNOWN_ERROR(9999,"未知异常")
    ;


    private final int code;
    private final String desc;

    IMSendCode(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public int getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
